<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      h1 {
        height: 200px;
        background-color: gray;
        text-align: center;
        line-height: 200px;
        font-size: 100px;
      }
      /* and 且 运算符 */
      @media (min-width: 700px) and (max-width: 800px) {
        h1 {
          background-color: orange;
        }
      }
      @media screen and (min-width: 700px) and (max-width: 800px) {
        h1 {
          background-color: orange;
        }
      }

      /* 或 运算符 */
      /* @media (max-width: 700px) or (min-width: 800px) {
        h1 {
          background-color: orange;
        }
      }

      @media screen and (max-width: 700px) or (min-width: 800px) {
        h1 {
          background-color: orange;
        }
      } */

      /* 否定运算符 */
      /* @media not screen {
        h1 {
          background-color: orange;
        }
      } */

      /* 肯定运算符 only只适用于老的ie浏览器，现在可以不使用 */
      /* @media only screen and (width: 800px) {
        h1 {
          background-color: orange;
        }
      } */
    </style>
  </head>
  <body>
    <h1>我的地球</h1>
  </body>
</html>
